package com.glsc.ngateway.flowable.listener;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

import java.util.Arrays;

public class ProcessTaskHandler implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {

        String userid = delegateTask.getVariable("userid").toString();

        String[] v = {"lm1", "lm2", "lm3"};
        delegateTask.setVariable("employee", "liuming");
        delegateTask.setVariable("outcome", "liuming");
        delegateTask.setVariable("bossList", Arrays.asList(v));
        delegateTask.setVariable("manager", "zzp");

    }

}